package linc.cool.rabbitmq.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageListener;

/**
 * @author yqlin
 * @date 2022/3/3 7:50 下午
 * @description
 */
@Slf4j
public class SpringQueueListener implements MessageListener {
    @Override
    public void onMessage(Message message) {
        log.info(new String(message.getBody()));
    }
}
